package com.daxiong.spring_wiringbean.javaConfig;

import org.springframework.stereotype.Component;

/**
 * 一种 CD 的实现
 *
 * @author sunyanxiong
 * @date 2017/4/29
 */
public class SgtPeppers implements CompactDisc {
    private String title = "单身情歌";
    private String artist = "林志炫";

    public void play() {
        System.out.println("Playing " + title + " by " + artist);
    }
}
